<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改订单信息')" />
    <th:block th:include="include :: datetimepicker-css" />
    <th:block th:include="include :: bootstrap-fileinput-css"/>
    <style type="text/css">
        input{
          font-size:12px;
        }
        label{
          font-size:12px;
        }

    </style>
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-pddxx-edit" th:object="${pddxx}">
          <div id="div_info" >


           </div>


           <div style="display:none" id="div_hidden">


          </div>

           <!--订单编码-->
           <div class="form-group col-sm-6 hidden">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->订单编码</label>
                <div class="col-sm-8">
                    <input id="ddid"  name="ddid" th:field="*{ddid}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--订单编号-->
           <div class="form-group col-sm-6">
                <label class="col-sm-4 control-label"><span style="color: red; ">订单编号*</span></label>
                <div class="col-sm-8">
                    <input id="ddbh" name="ddbh" th:field="*{ddbh}" class="form-control" type="text" required/> <!---->
                </div>
            </div>

           <!--会员编码-->
           <div class="form-group col-sm-6 hidden">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->会员编码</label>
                <div class="col-sm-8">
                    <input id="hyid"  name="hyid" th:field="*{hyid}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--会员名称-->
           <div class="form-group col-sm-6">
                <label class="col-sm-4 control-label"><span style="color: red; ">会员名称*</span></label>
                <div class="col-sm-8">
                    <input id="hymc" name="hymc" th:field="*{hymc}" class="form-control" type="text" required/> <!---->
                </div>
            </div>

           <!--商品数量-->
           <div class="form-group col-sm-6">
                <label class="col-sm-4 control-label"><span style="color: red; ">商品数量*</span></label>
                <div class="col-sm-8">
                    <input id="spsl" name="spsl" th:field="*{spsl}" class="form-control" type="text" required/> <!---->
                </div>
            </div>

           <!--价格总计-->
           <div class="form-group col-sm-6">
                <label class="col-sm-4 control-label"><span style="color: red; ">价格总计*</span></label>
                <div class="col-sm-8">
                    <input id="jgzj" name="jgzj" th:field="*{jgzj}" class="form-control" type="text" required/> <!---->
                </div>
            </div>

           <!--订单状态-->
           <div class="form-group col-sm-6" hidden>
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->订单状态</label>
                <div class="col-sm-8">
                    <input id="ddzt" name="ddzt" th:field="*{ddzt}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

            <!--下单时间-->
           <div class="form-group col-sm-6">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->下单时间</label>
                <div class="col-sm-8">
                    <input id="xdsj"  name = "xdsj" th:field="*{xdsj}" class="form-control" type="text" required/> <!---->
                </div>
            </div> 


           <!--下单说明-->
            <div class="row">
                <div class="col-sm-12">
                    <div class="form-group">
                        <label class="col-sm-2 control-label  left"><!--span style="color: red; ">*</span-->下单说明</label>
                        <div class="col-sm-9">
                            <textarea id="xdsm"  name="xdsm" maxlength="500" class="form-control" rows="3" >[[*{xdsm}]]</textarea><!--required--> 
                        </div>
                    </div>
                </div>
            </div>

           <!--支付渠道-->
           <div class="form-group col-sm-6">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->支付渠道</label>
                <div class="col-sm-8">
                    <input id="zfqd" name="zfqd" th:field="*{zfqd}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--支付账号-->
           <div class="form-group col-sm-6">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->支付账号</label>
                <div class="col-sm-8">
                    <input id="zfzh" name="zfzh" th:field="*{zfzh}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--支付人-->
           <div class="form-group col-sm-6">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->支付人</label>
                <div class="col-sm-8">
                    <input id="zfry" name="zfry" th:field="*{zfry}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

            <!--支付时间-->
           <div class="form-group col-sm-6">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->支付时间</label>
                <div class="col-sm-8">
                    <input id="zfsj"  name = "zfsj" th:field="*{zfsj}" class="form-control" type="text" /> <!--required-->
                </div>
            </div> 


           <!--支付说明-->
            <div class="row">
                <div class="col-sm-12">
                    <div class="form-group">
                        <label class="col-sm-2 control-label  left"><!--span style="color: red; ">*</span-->支付说明</label>
                        <div class="col-sm-9">
                            <textarea id="zfsm"  name="zfsm" maxlength="500" class="form-control" rows="3" >[[*{zfsm}]]</textarea><!--required--> 
                        </div>
                    </div>
                </div>
            </div>

           <!--收货人-->
           <div class="form-group col-sm-6">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->收货人</label>
                <div class="col-sm-8">
                    <input id="shry" name="shry" th:field="*{shry}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--收货地址-->
           <div class="form-group col-sm-6">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->收货地址</label>
                <div class="col-sm-8">
                    <input id="shdz" name="shdz" th:field="*{shdz}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--收货人电话-->
           <div class="form-group col-sm-6">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->收货人电话</label>
                <div class="col-sm-8">
                    <input id="shdh" name="shdh" th:field="*{shdh}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--配送人-->
           <div class="form-group col-sm-6">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->配送人</label>
                <div class="col-sm-8">
                    <input id="psry" name="psry" th:field="*{psry}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

            <!--配送时间-->
           <div class="form-group col-sm-6">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->配送时间</label>
                <div class="col-sm-8">
                    <input id="pssj"  name = "pssj" th:field="*{pssj}" class="form-control" type="text" /> <!--required-->
                </div>
            </div> 


           <!--配送说明-->
            <div class="row">
                <div class="col-sm-12">
                    <div class="form-group">
                        <label class="col-sm-2 control-label  left"><!--span style="color: red; ">*</span-->配送说明</label>
                        <div class="col-sm-9">
                            <textarea id="pssm"  name="pssm" maxlength="500" class="form-control" rows="3" >[[*{pssm}]]</textarea><!--required--> 
                        </div>
                    </div>
                </div>
            </div>

           <!--签收人-->
           <div class="form-group col-sm-6">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->签收人</label>
                <div class="col-sm-8">
                    <input id="qsry" name="qsry" th:field="*{qsry}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

            <!--签收时间-->
           <div class="form-group col-sm-6">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->签收时间</label>
                <div class="col-sm-8">
                    <input id="qssj"  name = "qssj" th:field="*{qssj}" class="form-control" type="text" /> <!--required-->
                </div>
            </div> 


           <!--签收说明-->
            <div class="row">
                <div class="col-sm-12">
                    <div class="form-group">
                        <label class="col-sm-2 control-label  left"><!--span style="color: red; ">*</span-->签收说明</label>
                        <div class="col-sm-9">
                            <textarea id="qssm"  name="qssm" maxlength="500" class="form-control" rows="3" >[[*{qssm}]]</textarea><!--required--> 
                        </div>
                    </div>
                </div>
            </div>


           <!--评价内容-->
            <div class="row">
                <div class="col-sm-12">
                    <div class="form-group">
                        <label class="col-sm-2 control-label  left"><!--span style="color: red; ">*</span-->评价内容</label>
                        <div class="col-sm-9">
                            <textarea id="pjnr"  name="pjnr" maxlength="500" class="form-control" rows="3" >[[*{pjnr}]]</textarea><!--required--> 
                        </div>
                    </div>
                </div>
            </div>

            <!--评价时间-->
           <div class="form-group col-sm-6">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->评价时间</label>
                <div class="col-sm-8">
                    <input id="pjsj"  name = "pjsj" th:field="*{pjsj}" class="form-control" type="text" /> <!--required-->
                </div>
            </div> 

           <!--备注项00-->
           <div class="form-group col-sm-6 hidden">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->备注项00</label>
                <div class="col-sm-8">
                    <input id="bz00"  name="bz00" th:field="*{bz00}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--备注项01-->
           <div class="form-group col-sm-6 hidden">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->备注项01</label>
                <div class="col-sm-8">
                    <input id="bz01"  name="bz01" th:field="*{bz01}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--备注项02-->
           <div class="form-group col-sm-6 hidden">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->备注项02</label>
                <div class="col-sm-8">
                    <input id="bz02"  name="bz02" th:field="*{bz02}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--备注项03-->
           <div class="form-group col-sm-6 hidden">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->备注项03</label>
                <div class="col-sm-8">
                    <input id="bz03"  name="bz03" th:field="*{bz03}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--备注项04-->
           <div class="form-group col-sm-6 hidden">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->备注项04</label>
                <div class="col-sm-8">
                    <input id="bz04"  name="bz04" th:field="*{bz04}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--备注项05-->
           <div class="form-group col-sm-6 hidden">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->备注项05</label>
                <div class="col-sm-8">
                    <input id="bz05"  name="bz05" th:field="*{bz05}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--备注项06-->
           <div class="form-group col-sm-6 hidden">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->备注项06</label>
                <div class="col-sm-8">
                    <input id="bz06"  name="bz06" th:field="*{bz06}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--备注项07-->
           <div class="form-group col-sm-6 hidden">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->备注项07</label>
                <div class="col-sm-8">
                    <input id="bz07"  name="bz07" th:field="*{bz07}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--备注项08-->
           <div class="form-group col-sm-6 hidden">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->备注项08</label>
                <div class="col-sm-8">
                    <input id="bz08"  name="bz08" th:field="*{bz08}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--备注项09-->
           <div class="form-group col-sm-6 hidden">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->备注项09</label>
                <div class="col-sm-8">
                    <input id="bz09"  name="bz09" th:field="*{bz09}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--备注项10-->
           <div class="form-group col-sm-6 hidden">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->备注项10</label>
                <div class="col-sm-8">
                    <input id="bz10"  name="bz10" th:field="*{bz10}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--备注项11-->
           <div class="form-group col-sm-6 hidden">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->备注项11</label>
                <div class="col-sm-8">
                    <input id="bz11"  name="bz11" th:field="*{bz11}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--备注项12-->
           <div class="form-group col-sm-6 hidden">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->备注项12</label>
                <div class="col-sm-8">
                    <input id="bz12"  name="bz12" th:field="*{bz12}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--备注项13-->
           <div class="form-group col-sm-6 hidden">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->备注项13</label>
                <div class="col-sm-8">
                    <input id="bz13"  name="bz13" th:field="*{bz13}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--备注项14-->
           <div class="form-group col-sm-6 hidden">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->备注项14</label>
                <div class="col-sm-8">
                    <input id="bz14"  name="bz14" th:field="*{bz14}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--备注项15-->
           <div class="form-group col-sm-6 hidden">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->备注项15</label>
                <div class="col-sm-8">
                    <input id="bz15"  name="bz15" th:field="*{bz15}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--备注项16-->
           <div class="form-group col-sm-6 hidden">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->备注项16</label>
                <div class="col-sm-8">
                    <input id="bz16"  name="bz16" th:field="*{bz16}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--备注项17-->
           <div class="form-group col-sm-6 hidden">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->备注项17</label>
                <div class="col-sm-8">
                    <input id="bz17"  name="bz17" th:field="*{bz17}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--备注项18-->
           <div class="form-group col-sm-6 hidden">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->备注项18</label>
                <div class="col-sm-8">
                    <input id="bz18"  name="bz18" th:field="*{bz18}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--备注项19-->
           <div class="form-group col-sm-6 hidden">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->备注项19</label>
                <div class="col-sm-8">
                    <input id="bz19"  name="bz19" th:field="*{bz19}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

 
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <th:block th:include="include :: bootstrap-fileinput-js"/>
    <script type="text/javascript">
        var prefix = ctx + "pdd/pddxx";
        $("#form-pddxx-edit").validate({
            focusCleanup: true
        });
        updateValueBeforeEdit();

        function submitHandler() {
            if ($.validate.form()) {
                updateValueAfterEdit();
                $.operate.save(prefix + "/edit", $('#form-pddxx-edit').serialize());
            }
        }
        //对编辑前的信息进行更新赋值
        function updateValueBeforeEdit(){
            // $('#ddid').val(''); //订单编码
            // $('#ddbh').val(''); //订单编号
            // $('#hyid').val(''); //会员编码
            // $('#hymc').val(''); //会员名称
            // $('#spsl').val(''); //商品数量
            // $('#jgzj').val(''); //价格总计
            // $('#ddzt').val(''); //订单状态
            // $('#xdsj').val(''); //下单时间
            // $('#xdsm').val(''); //下单说明
            // $('#zfqd').val(''); //支付渠道
            // $('#zfzh').val(''); //支付账号
            // $('#zfry').val(''); //支付人
            // $('#zfsj').val(''); //支付时间
            // $('#zfsm').val(''); //支付说明
            // $('#shry').val(''); //收货人
            // $('#shdz').val(''); //收货地址
            // $('#shdh').val(''); //收货人电话
            // $('#psry').val(''); //配送人
            // $('#pssj').val(''); //配送时间
            // $('#pssm').val(''); //配送说明
            // $('#qsry').val(''); //签收人
            // $('#qssj').val(''); //签收时间
            // $('#qssm').val(''); //签收说明
            // $('#pjnr').val(''); //评价内容
            // $('#pjsj').val(''); //评价时间
            // $('#bz00').val(''); //备注项00
            // $('#bz01').val(''); //备注项01
            // $('#bz02').val(''); //备注项02
            // $('#bz03').val(''); //备注项03
            // $('#bz04').val(''); //备注项04
            // $('#bz05').val(''); //备注项05
            // $('#bz06').val(''); //备注项06
            // $('#bz07').val(''); //备注项07
            // $('#bz08').val(''); //备注项08
            // $('#bz09').val(''); //备注项09
            // $('#bz10').val(''); //备注项10
            // $('#bz11').val(''); //备注项11
            // $('#bz12').val(''); //备注项12
            // $('#bz13').val(''); //备注项13
            // $('#bz14').val(''); //备注项14
            // $('#bz15').val(''); //备注项15
            // $('#bz16').val(''); //备注项16
            // $('#bz17').val(''); //备注项17
            // $('#bz18').val(''); //备注项18
            // $('#bz19').val(''); //备注项19

        }
        //对编辑后的信息进行更新赋值
        function updateValueAfterEdit(){
            // $('#ddid').val(''); //订单编码
            // $('#ddbh').val(''); //订单编号
            // $('#hyid').val(''); //会员编码
            // $('#hymc').val(''); //会员名称
            // $('#spsl').val(''); //商品数量
            // $('#jgzj').val(''); //价格总计
            // $('#ddzt').val(''); //订单状态
            // $('#xdsj').val(''); //下单时间
            // $('#xdsm').val(''); //下单说明
            // $('#zfqd').val(''); //支付渠道
            // $('#zfzh').val(''); //支付账号
            // $('#zfry').val(''); //支付人
            // $('#zfsj').val(''); //支付时间
            // $('#zfsm').val(''); //支付说明
            // $('#shry').val(''); //收货人
            // $('#shdz').val(''); //收货地址
            // $('#shdh').val(''); //收货人电话
            // $('#psry').val(''); //配送人
            // $('#pssj').val(''); //配送时间
            // $('#pssm').val(''); //配送说明
            // $('#qsry').val(''); //签收人
            // $('#qssj').val(''); //签收时间
            // $('#qssm').val(''); //签收说明
            // $('#pjnr').val(''); //评价内容
            // $('#pjsj').val(''); //评价时间
            // $('#bz00').val(''); //备注项00
            // $('#bz01').val(''); //备注项01
            // $('#bz02').val(''); //备注项02
            // $('#bz03').val(''); //备注项03
            // $('#bz04').val(''); //备注项04
            // $('#bz05').val(''); //备注项05
            // $('#bz06').val(''); //备注项06
            // $('#bz07').val(''); //备注项07
            // $('#bz08').val(''); //备注项08
            // $('#bz09').val(''); //备注项09
            // $('#bz10').val(''); //备注项10
            // $('#bz11').val(''); //备注项11
            // $('#bz12').val(''); //备注项12
            // $('#bz13').val(''); //备注项13
            // $('#bz14').val(''); //备注项14
            // $('#bz15').val(''); //备注项15
            // $('#bz16').val(''); //备注项16
            // $('#bz17').val(''); //备注项17
            // $('#bz18').val(''); //备注项18
            // $('#bz19').val(''); //备注项19
            
        }
    </script>

     <!--设置日期/时间 输入框-->
     <script>
         //$("#jssj").attr("placeholder","yyyy-MM-dd HH:mm:ss"); $("#jssj").datetimepicker({autoclose:true,format:"yyyy-mm-dd hh:ii:ss" }); //接收时间
         //$("#bzsj").attr("placeholder","yyyy-MM-dd"); $("#bzsj").datetimepicker({autoclose:true,format:"yyyy-mm-dd",minView:"day" }); //签订日期
         $("#xdsj").attr("placeholder", "yyyy-MM-dd HH:mm:ss"); $("#xdsj").datetimepicker({ autoclose: true,format: "yyyy-mm-dd hh:ii:ss" }); //下单时间 
         $("#zfsj").attr("placeholder", "yyyy-MM-dd HH:mm:ss"); $("#zfsj").datetimepicker({ autoclose: true,format: "yyyy-mm-dd hh:ii:ss" }); //支付时间 
         $("#pssj").attr("placeholder", "yyyy-MM-dd HH:mm:ss"); $("#pssj").datetimepicker({ autoclose: true,format: "yyyy-mm-dd hh:ii:ss" }); //配送时间 
         $("#qssj").attr("placeholder", "yyyy-MM-dd HH:mm:ss"); $("#qssj").datetimepicker({ autoclose: true,format: "yyyy-mm-dd hh:ii:ss" }); //签收时间 
         $("#pjsj").attr("placeholder", "yyyy-MM-dd HH:mm:ss"); $("#pjsj").datetimepicker({ autoclose: true,format: "yyyy-mm-dd hh:ii:ss" }); //评价时间 


      </script>
	  	  
     <!-- refer 引用函数 -->
     <script>
	 

     </script>

</body>
</html>
